package com.hdax.ssm.dao;

import com.hdax.ssm.entity.UserInfo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserInfoDao {
    @Select("select * from userinfo")
    List<UserInfo> getUserAll();
    int addUser(UserInfo userInfo);
    UserInfo getUser(@Param("username") String username);
    int del(String[] ids) ;
    int update(UserInfo userInfo);
    @Select("select * from userinfo where id=#{id}")
    UserInfo getUserById(long id);

}
